package com.feonix.common.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Documented
@Retention(RUNTIME)
@Target(FIELD)
public @interface Column {

	public abstract String name() default "";

	public abstract ColumnType type();

	public abstract int length() default 0;

	public abstract boolean unique() default false;

	public abstract boolean notNull() default false;

	public abstract int decimalLenght() default -1;

	public abstract boolean update() default true;

}
